package com.os.test.service;

import com.os.test.dao.UserDao;
import com.os.test.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by songc on 2018/8/22.
 */
@Repository
public class UserServiceImpl implements UserService {

    //引入dao数据交互层
    @Autowired
    private UserDao userDao;

    @Override
    public User selectUserByLoginCode(String loginCode) {
        return null;
    }

    @Override
    public void regist(User user) {

    }

    @Override
    public User login(String loginCode, String pwd) {
        return new User("scl", loginCode, pwd);
    }
}
